/********************************************
* Copyrigt (C) rumi
* Module: drv_pincontrol.h
*********************************************/
#ifndef drv_pincontrol_H
#define drv_pincontrol_H

#include "mcu_config.h"
#include "bsp_gpio.h"

#define low     0
#define high    1


#if (MCU_TYPE == MCU_ESP32)
typedef struct {
    uint8_t PinNum;
}PinConfig_DrvDef;
#elif (MCU_TYPE == MCU_STM32)
typedef struct {
    uint32_t PinPort
    uint32_t PinNum;
}PinConfig_DrvDef;
#endif

typedef enum
{
	E_PIN_INIT  = 0,
    E_PIN_READ,
    E_PIN_WRITE,
    E_PIN_MAX,
}PIN_CTRL_EnumDef;

uint8_t Drv_IO_Control(PinConfig_DrvDef *ioDevice,uint8_t type, uint8_t state);

extern PinConfig_DrvDef Pin_WS2812;


#endif // drv_pincontrol_H
/********************************************
 * End of file
*********************************************/
